#include <iostream>
#include <vector>

using namespace std;

template<class CONTAINER>
void PrintContainer(const CONTAINER& con)
{
    //typename CONTAINER::const_iterator it = con.begin();
    auto it = con.begin();
    while(it != con.end())
    {
        cout<<*it<<" ";
        it++;
    }
        cout<<endl;

}

int main()
{
    vector<int> v(10,1);
    v.push_back(2);
    PrintContainer(v);

    return 0;
}
